Part Number Hot Search : 
LM1868N 120620R DF02S 4N32W HMC128G8 LM317 MC68185 XXXCXX
Product Description
Full Text Search
 

To Download TMP86FH46NG Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 
86fh46-2 200 7 -08 -0 7 tmp86fh46 ? watchdog timer ? interrupt sources/reset output (programmable) ? serial interface ?8-bit sio: 1 ch ? 8-bit uart: 1 ch ? 10-bit successive approximation type ad converter ? analog input: 8 ch ? key-on wakeup: 4 ch ? dual clock operation ? single/dual-clock mode ? nine power saving operating modes ? stop mode: oscillation stops. battery/capacitor backup. port output hold/high-impedance. ? slow 1, 2 mode: low power consumption operation using low-frequency clock (32.768 khz) ? idle 0 mode: cpu stops, and peripherals operate using high-frequency clock of time- base-timer. release by inttbt interrupt. ? idle 1 mode: cpu stops, and peripherals operate using high-frequency clock. release by interrupts. ? idle 2 mode: cpu stops, and peripherals operate using high and low frequency clock. release by interrupts. ? sleep 0 mode: cpu stops, and peripherals operate using low-frequency clock of time- base-timer. release by inttbt interrupt. ? sleep 1 mode: cpu stops, and peripherals operate using low-frequency clock. release by interrupts. ? sleep 2 mode: cpu stops, and peripherals operate using high and low frequency clock. release by interrupts. ? wide operating voltage: 4.5 to 5.5 v at 16 mhz/32.768 khz 2.7 to 5.5 v at 8 mhz/32.768 khz note: the operating voltage, the operating temperature and the operating current are different between tmp86fh46 and tmp86c846/h46. about details, please refer to electrical characteristics of each products.
86fh46-3 200 7-08-07 tmp86fh46 pin assignments (top view) block diagram                  
 
  
  
  
                    
 
 
 
    
 
 
  
  
  
  
!   
   
  
  
 
       
  
     
 
                       "# $%&' address/data bus address/data bus xin xout reset test standby control circuit system control circuit timing generator high frequency low frequency clock generator tlcs-870/c cpu data memory (ram) program memory (flash memory) interrupt controller i/o ports avss avdd varef 10 -bit ad converter tc3 8-bit timer/counter tc1 16-bit timer/counter time base timer watchdog timer p07 to p00 p22 to p20 p15 to p10 sio p47 to p40 p37 to p30 uart boot program (rom ) p2 p1 p4 p0 p3 flash memory i/f tc4
86fh46-4 200 7-08-07 tmp86fh46 pin function the tmp86fh46 has mcu mode and serial prom mode. (1) mcu mode in the mcu mode, the tmp86fh46 is a pin co mpatible with the tmp86c846/h46 (make sure to fix the test pin to low level). (2) serial prom mode the serial prom mode is set by fixing test pin, p10 and p11 at ?high? respectively when reset pin is fixed ?low?. after release of reset, the built-in boot ro m program is activated and the built-in flash memory is rewritten by serial i/f (uart). pin name (serial prom mode) input/ output functions pin name (mcu mode) boot1/rxd input/input fix ?high? during reset. this pin is used as rxd pin after releasing reset. p10 boot2/txd input/output fix ?high? during reset. this pin is used as txd pin after releasing reset. p11 test input fix to ?high?. reset i/o reset signal input or an internal error reset output. vdd, avdd power supply 5 v vss, avss 0 v varef leave open or apply reference voltage. p07 to p00, p15 to p12, p22 to p20, p37 to p30, p47 to p40 fix to ?low? or ?high?. xin input self oscillation with resonator (2 mhz, 4 mhz, 8 mhz, 16 mhz) xout output
86fh46-5 200 7-08-07 tmp86fh46 operation this section describes the functions and basic operational blocks of tmp86fh46. the tmp86fh46 has flash memory in place of the mask rom which is included in the tmp86c846/h46. the configuration and function are the same as the tmp86c846/h46. 1. operating mode the tmp86fh46 has mcu mode and serial prom mode. 1.1 mcu mode the mcu mode is set by fixing the test pin to the low level. in the mcu mode, the operation is the same as the tmp86c846/h46. 1.1.1 program memory the tmp86fh46 has a 16-kbyte built-in flash memory (addresses c000h to ffffh in the mcu mode). when using tmp86fh46 for evaluation of tm p86c846/h46, the program is written by the serial prom mode. figure 1.1.1 program memory area note: the area that is not in use should be set data to ffh. tmp86ch46 tmp86fh46 (a) rom size = 16 kbytes program 0000h c000h ffffh mcu mode program 0000h c000h ffffh tmp86c846 tmp86fh46 (b) rom size = 8 kbytes program 0000h e000h ffffh mcu mode program 0000h e000h ffffh
86fh46-6 200 7-08-07 tmp86fh46 1.1.2 data memory tmp86fh46 has a built-in 512-byte data memory (static ram). 1.1.3 input/output circuitry (1) control pins the control pins of the tmp86fh46 are the same as those of the tmp86c846/h46. (2) i/o ports the i/o circuitries of tmp86fh46 i/o ports are the same as the those of tmp86c846/h46.
86fh46-7 200 7-08-07 tmp86fh46 2. serial prom mode 2.1 outline the tmp86fh46 has a 2-kbyte boot rom for programming to flash memory. this boot rom is a mask rom that contains a program to writ e the flash memory on-board. the boot rom is available in a serial prom mode and it is controlled by test pin and reset pin and 2 i/o pins, and is communicated with uart. there are four operation modes in a serial prom mode: flash memory writing mode, ram loader mode, flash memory sum output mode and product discrimination code output mode. operating area of serial prom mode differs from that of mcu mode. the operating area of serial prom mode shows in table 2.1.1. table 2.1.1 operating area of serial prom mode 2.2 memory mapping the boot rom is mapped in address f800h to ffffh. the boot rom can?t be accessed in mcu mode. the figure 2.2.1 shows a memory mapping. figure 2.2.1 memory address maps parameter symbol min max unit operating voltage v dd 4.5 5.5 v high frequency fc 2, 4, 8, 16 mhz temperature topr 25 5 c 0000h 64 b y tes 512 bytes sfr ram flash memory 16384 bytes 003fh 0040h 023fh ffffh c000h 0000h 64 b y tes 512 bytes sfr ram boot rom 2048 bytes 003fh 0040h 023fh ffffh f800h mcu mode serial prom mode
86fh46-8 200 7-08-07 tmp86fh46 2.3 serial prom mode setting 2.3.1 serial prom mode control pins to execute on-board programming, start the tmp86fh46 in serial prom mode. setting of a serial prom mode is shown in table 2.3.1. table 2.3.1 serial prom mode setting note: boot1 is rxd pin and boot2 is txd pin during a serial prom mode. 2.3.2 pin function in the serial prom mode, txd (p11) and rxd (p 10) pins are used as a serial interface pin. therefore, if the programming is executed on-board after mounting, these pins should be released from the other devices for communication in serial prom mode. note: when the device is used as on-board writing and other parts are already mounted in place, be careful not to affect these communication control pins. pin name (serial prom mode) input/ output functions pin name (mcu mode) boot1/rxd input/input fix ?high? during reset. this pin is used as rxd pin after releasing reset. p10 boot2/txd input/output fix ?high? during reset. this pin is used as txd pin after releasing reset. p11 test input fix to ?high?. reset i/o reset signal input or an internal error reset output. vdd, avdd power supply 5 v vss, avss 0 v varef leave open or apply reference voltage. p07 to p00, p15 to p12, p22 to p20, p37 to p30, p47 to p40 fix to ?low? or ?high?. xin input self oscillation with resonator (2 mhz, 4 mhz, 8 mhz, 16 mhz) xout output pin setting test pin high boot1 (rxd) (note) high boot2 (txd) (note) high reset pin
86fh46-9 200 7-08-07 tmp86fh46 to set a serial prom mode, connect device pins as shown in figure 2.3.1. figure 2.3.1 serial prom mode port setting 2.3.3 activating serial prom mode the following is a procedure of setting of serial prom mode. figure 2.3.2 shows a serial prom mode timing. (1) turn on the power to the vdd pin. (2) set the reset to low level. (3) set the test, boot1 and boot2 pin to high level. (4) wait until the power supply and clock sufficiently stabilize. (5) release the reset (set to high level). (6) input a matching data (5ah) to boot1/rxd pin after waiting for setup sequence. for details of the setup timing, refer to 2.14 ?uart timing?. figure 2.3.2 serial prom mode timing tmp86fh46 vdd(4.5 v to 5.5 v) vdd avdd test p10 p11 reset : pull up xin xout boot1/rxd boot2/txd open or analog reference voltage. varef avss vss vdd test (input) reset (input) program boot1 (input)/ rxd (input) boot2 (input)/ txd (output) serial prom mode reset mode indeterminate matching data input setup time for serial prom mode (rxsup) fixed to high level by pull up
86fh46-10 200 7-08-07 tmp86fh46 2.4 interface specifications for uart the following shows the uart communication format used in serial prom mode. before on-board programming can be executed, the communication format on the external controller side must also be setup in the same way as for this product. note that although the default baud rate is 9,600 bps, it can be changed to other values as shown in table 2.4.1. the table 2.4.2 shows an operatin g frequency and baud rate in serial prom mode. except frequency which is not described in table 2.4.2 can not use in serial prom mode. baud rate (default): 9,600 bps data length: 8 bits parity addition: none stop bit length: 1 bit table 2.4.1 baud rate modification data table 2.4.2 operating frequency and baud rate in serial prom mode note: ?reference frequency? shows the high-frequency area supported in serial prom mode. except the above frequency can not be supported in serial prom mode. 2.5 command there are five commands in serial prom mode. after reset release, the tmp86fh46 waits a matching data (5ah). table 2.5.1 command in serial prom mode baud rate modification data 04h 05h 07h 0ah 18h 28h baud rate (bps) 76800 62500 38400 31250 19200 9600 reference baud rate (baud) 76800 62500 38400 31250 19200 9600 baud rate modification data 04h 05h 07h 0ah 18h 28h reference frequency (mhz) (bps) (%) (bps) (%) (bps) (%) (bps) (%) (bps) (%) (bps) (%) 2 ??????????9615 + 0.16 4 ? ? ? ? ? ? 31250 0.00 19231 + 0.16 9615 + 0.16 8 ? ? 62500 0.00 38462 + 0.16 31250 0.00 19231 + 0.16 9615 + 0.16 16 76923 +0.16 62500 0.00 38462 + 0.16 31250 0.00 19231 + 0.16 9615 + 0.16 command data operation mode remarks 5ah setup matching data. always start with this command after reset release. 30h flash memory writing writing to area from c000h to ffffh is enable. 60h ram loader writing to area from 0050h to 0230h is enable. 90h flash memory sum output the checksum of entire flash memory area (from c000h to ffffh) is output in order of the upper byte and the lower byte. c0h product discrimination code output product discrimination code, that is expressed by 13 bytes data, is output.
86fh46-11 200 7-08-07 tmp86fh46 2.6 operation mode there are four operating modes in serial prom mode: flash memory writing mode, ram loader mode, flash memory sum output mode and product discrimination code output mode. for details about these modes, refer to (1) flash memory writ ing mode through (4) product discrimination code output mode. (1) flash memory writing mode the data are written to the specified flash memory addresses. the controller should send the write data in the intel hex format (binary). fo r details of writing data format, refer to 2.7 ?flash memory writing data format?. if no errors are enco untered till the end record, the sum of 16 kbytes of flash memory is calculated and the result is returned to the controller. to execute the flash memory writing mode, the tmp86fh46 checks the passwords except a blank product. if the passwords did not match, the program is not executed. (2) ram loader mode the ram loader transfers the data into the internal ram that has been sent from the controller in intel hex format. when the tran sfer has terminated no rmally, the ram loader calculates the sum and sends the result to the controller before it starts executing the user program. after sending of sum, the program jumps to the start address of ram in which the first transferred data has been written. this ram loader function provides the user's own way to control on-board programming. to execute the ram loader mode, the tmp86fh46 checks the passwords except a blank product. if the passwords did not match, the program is not executed. (3) flash memory sum output mode the sum of 16 kbytes of flash memory is calculated and the result is returned to the controller. the boot rom does not support the reading function of the flash memory. instead, it has this sum command to use. by reading the sum, it is possible to manage revisions of application programs. (4) product discrimination code output mode the product discrimination code is output as a 13-byte data, that includes the start address and the end address of rom. (in case of tmp86fh46, the start address is c000h and the end address is ffffh.) therefore, the controller can recognize the device information by using this function.
86fh46-12 200 7-08-07 tmp86fh46 2.6.1 flash memory writing mode (operation command: 30h) table 2.6.1 shows flash memory writing mode process. table 2.6.1 flash memory writing mode process note 1: ?xxh 3? denotes that operation stops after sending 3 bytes of xxh. for details, refer to 2.8 ?error code?. note 2: refer to 2.10 ?intel hex format (binary)?. note 3: refer to 2.9 ?checksum (sum)?. note 4: refer to 2.11 ?passwords?. note 5: if all data of vector area are ?00h? or ?ffh?, the passwords comparison is not executed because the device is considered as blank product. however, it is necessary to specify the password count storage addresses and the password comparison start address even though it is a blank product. if a password error occurs, the uart function of tmp86fh46 stops without returning error code to the controller. therefore, when a password error occurs, the tmp86fh46 should be reset by reset pin input. note 6: the time between data records needs over 1 ms. number of bytes transferred transfer data from external controller to tmp86fh46 baud rate transfer data from tmp86fh46 to external controller boot rom 1st byte 2nd byte matching data (5ah) ? 9600 bps 9600 bps ? (baud rate auto set) ok: echo back data (5ah) error: nothing transmitted 3rd byte 4th byte baud rate modification data (see table 2.4.1) ? 9600 bps 9600 bps ? ok: echo back data error: a1h 3, a3h 3, 62h 3 (note 1) 5th byte 6th byte operation command data (30h) ? changed new baud rate changed new baud rate ? ok: echo back data (30h) error: a1h 3, a3h 3, 63h 3 (note 1) 7th byte 8th byte address 15 to 08 in which to store password count (note 4) changed new baud rate changed new baud rate ? ok: nothing transmitted error: nothing transmitted 9th byte 10th byte address 07 to 00 in which to store password count (note 4) changed new baud rate changed new baud rate ? ok: nothing transmitted error: nothing transmitted 11th byte 12th byte address 15 to 08 in which to start password comparison (note 4) changed new baud rate changed new baud rate ? ok: nothing transmitted error: nothing transmitted 13th byte 14th byte address 07 to 00 in which to start password comparison (note 4) changed new baud rate changed new baud rate ? ok: nothing transmitted error: nothing transmitted 15th byte : m'th byte password string (note 5) ? changed new baud rate changed new baud rate ? ok: nothing transmitted error: nothing transmitted m'th + 1 byte : n'th ? 2 byte extended intel format (binary) (note 2, 6) changed new baud rate ? n'th ? 1 byte ? changed new baud rate ok: sum (high) (note 3) error: nothing transmitted n'th byte ? changed new baud rate ok: sum (low) (note 3) error: nothing transmitted n'th + 1 byte (wait for the next operation) (command data) changed new baud rate ?
86fh46-13 200 7-08-07 tmp86fh46 description of flash memory writing mode 1. the receive data in the 1st byte is the matching data. when the boot program starts in serial prom mode, tmp86fh46 (mentioned as ?device? hereafter) waits for the matching data (5ah) to receive. upon receiving the matching data, it automatically adjusts the uart?s initial baud rate to 9,600bps. 2. when the device has received the matching data, the device transmits the data ?5ah? as an echo back to the controller. if the device can not receive the matching data, the device does not transmit the echo back data and waits for the matching data again with changing baud rate. therefore, the controller should send the ma tching data continuously until the device transmits the echo back data. 3. the receive data in the 3rd byte is the baud rate modification data. the six kinds of baud rate modification data shown in table 2.4.1 are available. even if baud rate changing is no need, be sure to send the initial baud rate data (28h: 9,600 bps). the changing of baud rate is executed after transmitting the echo back data. 4. when the 3rd byte data is one of the baud rate modification data corresponding to the device's operating frequency, the device sends the echo back data which is the same as received baud rate modification data. then the baud rate is changed. if the 3rd byte data does not correspond to the baud rate modification data, the device stops uart function after sending 3 bytes of baud rate modification error code: (62h). 5. the receive data in the 5th byte is the co mmand data (30h) to write the flash memory. 6. when the 5th byte is one of the operation command data shown in table 2.5.1, the device sends the echo back data which is the same as received operation command data (in this case, 30h). if the 5th byte data does not correspond to the operation command data, the device stops uart function after sending 3 bytes of operation command error code: (63h). 7. the 7th byte is used as an upper bit (bit15 to bit8) of the password count storage address. when the receiving is executed correctly (no error), the device does not send any data. if the receiving error or password error occur, the device does not send any data and stops uart function. 8. the 9th byte is used as a lower bit (bit7 to bit0) of the password count storage address. when the receiving is executed correctly (no error), the device does not send any data. if the receiving error or password error occur, the device does not send any data and stops uart function. 9. the 11th byte is used as an upper bit (bit15 to bit8) of the password comparison start address. when the receiving is executed correctly (no error), the device does not send any data. if the receiving error or password error occur, the device does not send any data and stops uart function. 10. the 13th byte is used as a lower bit (bit7 to bit0) of the password comparison start address. when the receiving is executed correctly (no error), the device does not send any data. if the receiving error or password error occur, the device does not send any data and stops uart function. 11. the 15th through the m?th bytes are the password data. the number of passwords is the data (n) indicated by the password count storage address. the password data are compared for n entries beginning with the password comparison start address. the controller should send n bytes of password data to the device. if the passwords do not match, the device stops uart function without returning error code to the cont roller. if the data of vector addresses (ffe0h to ffffh) are all ?ffh?, the comparison of passwords is not executed because the device is considered as a blank product.
86fh46-14 200 7-08-07 tmp86fh46 12. the receive data in the m?th + 1 through n?th ? 2 byte are received as binary data in intel hex format. no received data are echoed back to the controller. the data which is not the start mark (3ah for ?:?) in intel hex format is ignored and does not send an error code to the controller until the device receives the start mark. after receiving the start mark, the device receives the data record, that consists of length of data, address, record type, writing data and checksum. after receiving the checksum of data record, the device waits the start mark data (3ah) again. the data of data record is temporarily stored to ram and then, is written to specified flash memory by page (32 bytes) writing. for details of an organization of flash memory, refer to 2. ?serial prom mode?. since after receiving an end record, the device starts to calculate the sum, the controller should wait the sum after sending the end record. if receive error or intel hex format error occurs, the device stops uart function without returning error code to the controller. 13. the n?th ? 1 and the n?th bytes are the sum value that is sent to th e controller in order of the upper byte and the lower byte. for details on how to calculate the sum, refer to 2.9 ?checksum (sum)?. the sum calculation is perf ormed after detecting the end record, but the calculation is not executed when receive error or intel hex format error has occurred. the time required to calculate the sum of the 16 kbytes of flash memory area is approximately 100 ms at fc = 16 mhz. after the sum calculation, the device sends the sum data to the controller. after sending the end record, the co ntroller can judge that the transmission has been terminated correctly by receiving the checksum. 14. after sending the sum, the device waits for the next operation command data.
86fh46-15 200 7-08-07 tmp86fh46 2.6.2 ram loader mode (operation command: 60h) table 2.6.2 shows ram loader mode process. table 2.6.2 ram loader mode process note 1: ?xxh 3? denotes that operation stops after sending 3 bytes of xxh. for details, refer to 2.8 ?error code?. note 2: refer to 2.10 ?intel hex format (binary)?. note 3: refer to 2.9 ?checksum (sum)?. note 4: refer to 2.11 ?passwords?. number of bytes transferred transfer data from external controller to tmp86fh46 baud rate transfer data from tmp86fh46 to external controller boot rom 1st byte 2nd byte matching data (5ah) ? 9600 bps 9600 bps ? (baud rate auto set) ok: echo back data (5ah) error: nothing transmitted 3rd byte 4th byte baud rate modification data (see table 2.4.1) ? 9600 bps 9600 bps ? ok: echo back data error:a1h 3, a3h 3, 62h 3 (note 1) 5th byte 6th byte operation command data (60h) ? changed new baud rate changed new baud rate ? ok: echo back data (60h) error: a1h 3, a3h 3, 63h 3 (note 1) 7th byte 8th byte address 15 to 08 in which to store password count (note 4) changed new baud rate changed new baud rate ? ok: nothing transmitted error: nothing transmitted 9th byte 10th byte address 07 to 00 in which to store password count (note 4) changed new baud rate changed new baud rate ? ok: nothing transmitted error: nothing transmitted 11th byte 12th byte address 15 to 08 in which to start password comparison (note 4) changed new baud rate changed new baud rate ? ok: nothing transmitted error: nothing transmitted 13th byte 14th byte address 07 to 00 in which to start password comparison (note 4) changed new baud rate changed new baud rate ? ok: nothing transmitted error: nothing transmitted 15th byte : m'th byte password string (note 5) ? changed new baud rate changed new baud rate ? ok: nothing transmitted error: nothing transmitted m'th + 1 byte : n'th ? 2 byte extended intel format (binary) (note 2) changed new baud rate ? n'th ? 1 byte ? changed new baud rate ok: sum (high) (note 3) error: nothing transmitted n'th byte ? changed new baud rate ok: sum (low) (note 3) error: nothing transmitted ram ? the program jumps to the start address of ram in which the first transferred data has been written.
86fh46-16 200 7-08-07 tmp86fh46 note 5: if all data of vector area are ?00h? or ?ffh?, the passwords comparison is not executed because the device is considered as blank product. however, it is necessary to specify the password count storage addresses and the password comparison start address even though it is a blank product. if a password error occurs, the uart function of tmp86fh46 stops without returning error code to the controller. therefore, when a password error occurs, the tmp86fh46 should be reset by reset pin input. note 6: do not send only end record after transferring of password string. if the tmp86fh46 receives the end record only after reception of pass word string, it does not operate correctly. description of ram loader mode 1. the process of the 1st byte through the 4th byte are the same as flash memory writing mode. 2. the receive data in the 5th byte is the ram loader command data (60h) to write the user?s program to ram. 3. when the 5th byte is one of the operation command data shown in table 2.5.1, the device sends the echo back data which is the same as received operation command data (in this case, 60h). if the 5th byte data does not correspond to the operation command data, the device stops uart function after sending 3 bytes of operation command error code: (63h). 4. the process of the 7th byte through the m?th byte are the same as flash memory writing mode. 5. the receive data in the m?th + 1 through n?th ? 2byte are received as binary data in intel hex format. no received data are echoed back to the controller. the data which is not the start mark (3ah for ?:?) in intel hex format is ignored and does not send an error code to the controller until the device receives the start mark. after receiving the start mark, the device receives the data record, that consists of length of data, address, record type, writing data and checksum. after receiving the checksum of data record, the device waits the start mark data (3ah) again. th e data of data record is written to specified ram by the receiving data. since after receiving an end record, the device starts to calculate the sum, the controller should wait the sum af ter sending the end record. if receive error or intel hex format error occurs, the uart function of tmp86fh46 stops without returning error code to the controller. 6. the n?th ? 1 and the n?th bytes are the sum value that is sent to the controller in order of the upper byte and the lower byte. for details on how to calculate the sum, refer to 2.9 ?checksum (sum)?. the sum calculation is perf ormed after detecting the end record, but the calculation is not executed when receive error or intel hex format error has occurred. the sum is calculated by the data written to ram, but the length of data, address, record type and checksum in intel hex format are not included in sum. 7. the boot program jumps to the first address that is received as data in intel hex format after sending the sum to the controller.
86fh46-17 200 7-08-07 tmp86fh46 2.6.3 flash memory memory sum output mode (operation command: 90h) table 2.6.3 shows flash memory sum output mode process. table 2.6.3 flash memory memory sum output process note 1: ?xxh 3? denotes that operation stops after sending 3 bytes of xxh. for details, refer to 2.8 ?error code?. note 2: refer to 2.9 ?checksum (sum)? description of flash memory sum output mode 1. the process of the 1st byte through the 4th byte are the same as flash memory writing mode. 2. the receive data in the 5th byte is the flash memory sum command data (90h) to calculate the entire flash memory. 3. when the 5th byte is one of the operation command data shown in table 2.5.1, the device sends the echo back data which is the same as received operation command data (in this case, 90h). if the 5th byte data does not correspond to the operation command data, the device stops uart function after sending 3 bytes of operation command error code: (63h). 4. the 7th and the 8th bytes are th e sum value that is sent to the controller in order of the upper byte and the lower byte. for details on how to calculate the sum, refer to 2.9 ?checksum (sum)?. 5. after sending the sum, the device waits for the next operation command data. number of bytes transferred transfer data from external controller to tmp86fh46 baud rate transfer data from tmp86fh46 to external controller boot rom 1st byte 2nd byte matching data (5ah) ? 9600 bps 9600 bps ? (baud rate auto set) ok: echo back data (5ah) error: nothing transmitted 3rd byte 4th byte baud rate modification data (see table 2.4.1) ? 9600 bps 9600 bps ? ok: echo back data error: a1h 3, a3h 3, 62h 3 (note 1) 5th byte 6th byte operation command data (90h) ? changed new baud rate changed new baud rate ? ok: echo back data (90h) error: a1h 3, a3h 3, 63h 3 (note 1) 7th byte ? changed new baud rate ok: sum (high) (note 2) error: nothing transmitted 8th byte ? changed new baud rate ok: sum (low) (note 2) error: nothing transmitted 9th byte (wait for the next operation) (command data) changed new baud rate ?
86fh46-18 200 7-08-07 tmp86fh46 2.6.4 product discrimination code output mode (operation command: c0h) table 2.6.4 shows product discrimination code output mode process. table 2.6.4 product discrimination code output process note: ?xxh 3? denotes that operation stops after sending 3 bytes of xxh. for details, refer to 2.8 ?error code?. description of product discrimination code output mode 1. the process of the 1st byte through the 4th byte are the same as flash memory writing mode. 2. the receive data in the 5th byte is the product discrimination code output command data (c0h). 3. when the 5th byte is one of the operation command data shown in table 2.5.1, the device sends the echo back data which is the same as received operation command data (in this case, c0h). if the 5th byte data does not correspond to the operation command data, the device stops uart function after sending 3 bytes of operation command error code: (63h). 4. the 9th and the 19th bytes are the product discrimination code. for details, refer to 2.12 ?product discrimination code?. 5. after sending the sum, the device waits for the next operation command data. number of bytes transferred transfer data from external controller to tmp86fh46 baud rate transfer data from tmp86fh46 to external controller boot rom 1st byte 2nd byte matching data (5ah) ? 9600 bps 9600 bps ? (baud rate auto set) ok: echo back data (5ah) error: nothing transmitted 3rd byte 4th byte baud rate modification data (see table 2.4.1) ? 9600 bps 9600 bps ? ok: echo back data error: a1h 3, a3h 3, 62h 3 (note 1) 5th byte 6th byte operation command data (c0h) ? changed new baud rate changed new baud rate ? ok: echo back data (c0h) error: a1h 3, a3h 3, 63h 3 (note 1) 7th byte changed new baud rate 3ah start mark 8th byte changed new baud rate 0ah the number of transfer data (from 9th to 18th byte) 9th byte changed new baud rate 02h length of address (2 bytes) 10th byte changed new baud rate 03h reserved data 11th byte changed new baud rate 00h reserved data 12th byte changed new baud rate 00h reserved data 13th byte changed new baud rate 00h reserved data 14th byte changed new baud rate 01h the number of rom block (1 block) 15th byte changed new baud rate c0h first address of rom (upper 8 bits) 16th byte changed new baud rate 00h first address of rom (lower 8 bits) 17th byte changed new baud rate ffh end address of rom (upper 8 bits) 18th byte changed new baud rate ffh end address of rom (lower 8 bits) 19th byte changed new baud rate 3ch checksum of transferred data (from 9th to 18th byte) 20th byte (wait for the next operation) (command data) changed new baud rate ?
86fh46-19 200 7-08-07 tmp86fh46 2.7 flash memory writing data format flash memory area of tmp86f h46 consists of 512 pages and one page size is 32 bytes. writing to flash memory is executed by page writ ing. therefore, it is necessary to send 32 bytes data (for one page) even though only a few bytes data are written. figure 2.7.1 shows an organization of flash memory area. when the controller sends the writing data to the device, be sure to keep the format described below. 1. the address of data after receiving the flash memory writing command should be the first address of page. for example, in case of page 2, the first address should be c040h. 2. if the last data?s address of data record is not end address of page, the address of the next data record should be the address + 1 and the last data?s address must point to the last address of this page. for example, if the last data?s address is c00fh (page0), the address of the next data record should be c010h (page0) and the address of the last data should be c01fh (page0). 3. the last data?s address of data record immediately before sending the end record should be the last address of page. for example, in case of page 1, the last data?s address of data record should be c03fh. note: do not write only the vector area (fff0h to ffffh) when all data of flash memory are the same data. if the vector area is only written, the next operation can not be executed because of password error. note: ?f? shows the first address of each page and ?e? shows the last address of each page. figure 2.7.1 organizati on of flash memory area address 0 1 2 3 4 5 6 7 8 9 a b c d e f c000h f page0 e c010h c020h f c030h page1 e c040h f c050h page2 e c060h f c070h page3 e c080h f c090h page4 e c0a0h f c0b0h page5 e c0c0h f : : ff70h e ff80h f ff90h page508 e ffa0h f ffb0h page509 e ffc0h f ffd0h page510 e ffe0h f fff0h page511 e
86fh46-20 200 7-08-07 tmp86fh46 2.8 error code when the device detects an error, the error codes are sent to the controller. table 2.8.1 error code 2.9 checksum (sum) (1) calculation method sum consists of byte + byte.... + byte, the checksum of which is returned in word as the result. namely, data is read out in byte and checks um of which is calculated, with the result returned in word. example: the sum returned when executing the flash memory write command, ram loader command, or flash memory sum command is calculated in the manner shown above. (2) calculation data the data from which sum is calculated are listed in table 2.9.1 below. table 2.9.1 checksum calculation data transmit data meaning of transmit data 62h, 62h, 62h baud rate modification error occurred. 63h, 63h, 63h operating command error occurred. a1h, a1h, a1h framing error in received data occurred. a3h, a3h, a3h overrun error in received data occurred. a1h if the data to be calculated consists of the four bytes shown to the left, sum of the data is b2h a1h + b2h + c3h + d4h = 02eah sum (high) = 02h sum (low) = eah c3h d4h operating mode calculation data remarks flash memory writing mode data in the entire area (16 kbytes) of flash memory even when written to part of the flash memory area, data in the entire memory area (16 kbytes) is calculated. the length of data, address, record type and checksum in intel hex format are not included in sum. flash memory checksum output mode ram loader mode data written to ram the length of data, address, record type and checksum in intel hex format are not included in sum. product discrimination code out- put mode checksum of transferred data (from 9th to 18th byte) for details, refer to ?2.6.4 product discrimination code output mode?.
86fh46-21 200 7-08-07 tmp86fh46 2.10 intel hex format (binary) 1. after receiving the sum of a record, the device waits for the start mark data (3ah for ?:?) of the next record. therefore, the device ignores the data, which does not match the start mark data after receiving the sum of a record. 2. make sure that once the controller program has finished sending the sum of the end record, it does not send anything and waits for two bytes of data to be received (upper and lower bytes of sum). this is because after receiving the sum of the end record, the boot program calculates the sum and returns the calculated sum in two bytes to the controller. 3. if a receive error or intel hex format error occurs, the uart function of tmp86fh46 stops without returning error code to the controller. in the following cases, an intel hex format error occurs: ? when the record type is not 00h, 01h, or 02h ? when a sum error occurred ? when the data length of an extended record (type = 02h) is not 02h ? when the address of an extended record (type = 02h) is larger than 1000h and after that, receives the data record ? when the data length of the end record (type = 01h) is not 00h 2.11 passwords the area in which passwords can be specified is located at addresses c000h to ff9fh. the vector area (from ffa0h to ffffh) can not be sp ecified as passwords area. the device compares the stored passwords with the passwords, which are received from the controller. if all data of vector area are ?00h? or ?ffh?, the passwords comparison is not executed because the device is considered as blank product. it is necessary to specify the password count storage addresses and the password comparison start address even though it is a blank product. note 1: when all data of addresses from ffe0h to ffffh area are ?00h? or ?ffh?, the device is judged as blank product. note 2: the same three or more bytes consecutive data can not be used as password. when the password includes the same consecutive data (three or more bytes), the password error occurs. if the password error occured, the uart function of device stops without returning error code. note 3: *: don?t care. note 4: when the password doesn?t match the above condition, the password error occurs. if the password error occured, the uart function of device stops without returning error code. note 5: in case of the blank product, the device receives intel hex format immediately after receiving pcsa without receiving password strings. in this time, because the device ignores the data table 2.11.1 password setting in the blank product and non blank product password blank product(note 1) non blank product pnsa (password count storage addresses) c000h pnsa ff9fh c000h pnsa ff9fh pcsa (password comparison start address) c000h pcsa ff9fh c000h pcsa ffa0 ? n n (password count) *8 n setting of password no need need (note 2)
86fh46-22 200 7-08-07 tmp86fh46 except the start mark data (3ah for ?:?) as intel hex format data, even if external controller transmitted dummy password strings, process operates correctly. however, if the dummy password strings contain data ?3ah?, the device detects it as start mark data mistakenly, and device stops process without returning error doce. therefore, if these process becomes issue, the external controller should not transmit the dummy password strings. figure 2.11.1password comparison example 08h 01h 02h 03h 04h 05h 08h f012h f107h f108h flash memory f109h f10ah f10bh f10ch uart f0h 12h f1h 07h 01h 02h 03h 04h 05h 06h 07h 08h pnsa pcsa password string 06h 07h f10dh f10eh "08h" is treated as the number of password. 8 bytes comparison example) pnsa = f012h pcsa = f107h password string = 01h,02h,03h,04h,05h, 06h,07h,08h rxd pin
86fh46-23 200 7-08-07 tmp86fh46 3. password string a password string sent from the controller is compared with the specified data in the flash memory. if the password string does not match the specified data in the flash memory, a password error occurs and the tmp86fh46 stops operating. 4. handling of password error if a password error occurs, the uart function of tmp86fh46 stops without returning error code to the controller. therefore, when a password error occurs, the tmp86fh46 should be reset by reset pin input. 2.12 product discrimination code the product discrimination code is a 13-byte data, that includes the start address and the end address of rom. table 2.12.1 shows the product discrimination code format. table 2.12.1 product discrimination code format data the meaning of data in case of tmp86fh46 1st start mark (3ah) 3ah 2nd the number of transfer data (from 3rd to 13th byte) 0ah 3rd length of address 02h 4th reserved data 03h 5th reserved data 00h 6th reserved data 00h 7th reserved data 00h 8th the number of rom block 01h 9th the upper byte of the first address of rom c0h (depends on the product) 10th the lower byte of the first address of rom 00h (depends on the product) 11th the upper byte of the end address of rom ffh (depends on the product) 12th the lower byte of the end address of rom ffh (depends on the product) 13th checksum of transferred data (from 3rd to 12th byte) 3ch (depends on the product)

86fh46-25 200 7-08-07 tmp86fh46 2.14 uart timing table 2.14.1 uart timing-1 (vdd = 4.5 v to 5.5 v, fc = 2 mhz, 4 mhz, 8 mhz, 16 mhz, topr = 20 to 30c) table 2.14.2 uart timing-2 (vdd = 4.5 v to 5.5 v, fc = 2 mhz, 4 mhz, 8 mhz, 16 mhz, topr = 20 to 30c) table 2.14.3 uart timing-3 (vdd = 4.5 v to 5.5 v, fc = 2 mhz, 4 mhz, 8 mhz, 16 mhz, topr = 20 to 30c) parameter symbol the number of clock (fc) required minimum time at fc = 2 mhz at fc = 16 mhz time from the reception of a matching data until the output of an echo back cmeb1 approx. 600 300 s37.5 s time from the reception of a baud rate modification data until the output of an echo back cmeb2 approx. 500 250 s31.3 s time from the reception of an operation command until the output of an echo back cmeb3 approx. 500 250 s31.3 s calculation time of checksum cksm approx. 1573000 786.5 ms 98.3 ms parameter symbol the number of clock (fc) required minimum time at fc = 2 mhz at fc = 16 mhz time from reset release until acceptance of start bit of rxd pin rxsup 25000 12.5 ms 1.56 ms time between a matching data and the next matching data cmtr1 28500 14.3 ms 1.8 ms time from the echo back of matching data until the acceptance of baud rate modification data cmtr2 400 200 s 25 s time from the output of echo back of baud rate modification data until the acceptance of an operation command cmtr3 500 250 s31.3 s time from the output of echo back of operation command until the acceptance of password count storage addresses cmtr4 2600 1.3 ms 163 s parameter symbol min. max. unit time from the stop bit of the previous data record to start bit of the next data record tsu; st 1 ? ms reset pin (tmp86fh46) rxd pin (tmp86fh46) rxsup (5ah) cmeb1 (5ah) cmtr2 (28h) (28h) cmeb2 cmtr3 (30h) (30h) cmeb3 cmtr4 txd pin (tmp86fh46) rxd pin (tmp86fh46) txd pin (tmp86fh46) (5ah) (5ah) (5ah) cmtr1 rxd pin (tmp86fh46) txd pin (tmp86fh46) the end byte of a data record tsu; st stop bit start bit
86fh46-26 200 7-08-07 tmp86fh46 electrical characteristics note: the absolute maximum ratings are rated values which must not be exceeded during operation, even for an instant. any one of the ratings must not be exceeded. if any absolute maximum rating is exceeded, a device may break down or its performance may be degraded, causing it to catch fire or explode resulting in injury to the user. thus, when designing products which include this device, ensure that no absolute maximum rating value will ever be exceeded. absolute maximum ratings (v ss = 0 v) parameter symbol pins rating unit supply voltage v dd ? 0.3 to 5.5 v input voltage v in ? 0.3 to v dd + 0.3 output voltage v out ? 0.3 to v dd + 0.3 output current (per 1 pin) i out1 i oh p1, p3, p4 ports ? 1.8 ma i out2 i ol p1, p3 ports 3.2 i out3 i ol p0, p2, p4 ports 30 output current (total) i out1 p1, p3 ports 60 i out2 p0, p2, p4 ports 80 power dissipation [topr = 70c] pd 250 mw soldering temperature (time) tsld 260 (10 s) c storage temperature tstg ? 55 to 125 operating temperature topr ? 40 to 85 (mcu mode) 20 to 30 (serial prom mode)
86fh46-27 200 7-08-07 tmp86fh46 1) mcu mode (v ss = 0 v, topr = ? 40 to 85oc) 2) serial prom mode (v ss = 0 v, topr = 20 to 30oc) note: the recommended operating conditions for a device are operating conditions under which it can be guaranteed that the device will operate as specified. if the device is used under operating conditions other than the reco mmended operating conditions (supply voltage, operating temperature range, specified ac/dc values etc.), malfunction may occur. thus, when designing products which include this device, ensure that the recommended operating conditions for the device are always adhered to. recommended operating condition parameter symbol pins condition min max unit supply voltage v dd fc = 16 mhz normal1, 2 mode 4.5 5.5 v idle0, 1, 2 mode fc = 8 mhz normal1, 2 mode 2.7 idle0, 1, 2 mode stop mode input high level v ih1 except hysteresis input v dd 4.5 v v dd 0.70 v dd v ih2 hysteresis input v dd 0.75 v ih3 v dd < 4.5 v v dd 0.90 input low level v il1 except hysteresis input v dd 4.5 v 0 v dd 0.30 v il2 hysteresis input v dd 0.25 v il3 v dd < 4.5 v v dd 0.10 clock frequency fc xin, xout v dd = 4.5 to 5.5 v 1.0 16.0 mhz v dd = 2.7 to 5.5 v 8.0 fs xtin, xtout 30.0 34.0 khz parameter symbol pins condition min max unit supply voltage v dd fc = 2 mhz, 4 mhz, 8 mhz, 16 mhz 4.5 5.5 v input high level v ih1 except hysteresis input v dd = 4.5 to 5.5 v v dd 0.70 v dd v ih2 hysteresis input v dd 0.75 input low level v il1 except hysteresis input v dd = 4.5 to 5.5 v 0 v dd 0.30 v il2 hysteresis input v dd 0.25 clock frequency fc xin, xout v dd = 4.5 to 5.5 v 2.0, 4.0, 8.0, 16 mhz
86fh46-28 200 7-08-07 tmp86fh46 note 1: typical values show those at topr = 25c, v dd = 5 v. note 2: input current (i in1 , i in3 ); the current through pull-down or pull-up resistor is not included. note 3: i dd does not include i ref current. dc characteristics (v ss = 0 v, topr = ? 40 to 85c) parameter symbol pins condition min typ. max unit hysteresis voltage v hs hysteresis input ? 0.9 ? v input current i in1 test v dd = 5.5 v, v in = 5.5/0 v ?? 2 a i in2 sink open drain, tri-state i in3 reset , stop input resistance r in1 test pull down ? 70 ? k ? r in2 reset pull up 100 200 450 output leakage current i lo1 sink open drain v dd = 5.5 v, v out = 5.5 v ?? 2 a i lo2 tri-state v dd = 5.5 v, v out = 5.5/0 v ?? 2 output high voltage v oh tri-state v dd = 4.5 v, l oh = ? 0.7 ma 4.1 ?? v output low voltage v ol except xout, p0, p2 and p4 ports v dd = 4.5 v, i ol = 1.6 ma ?? 0.4 output low current i ol high current port (p0, p2, p4 port) v dd = 4.5 v, v ol = 1.0 v ? 20 ? ma supply current in normal 1, 2 mode i dd v dd = 5.5 v v in = 5.3 v/0.2 v fc = 16 mhz fs = 32.768 khz ? 8.0 12.5 supply current in idle1, 2 mode ? 6.0 9.0 supply current in idle0 mode ? 4.5 9.0 supply current in slow1 mode v dd = 3.0 v v in = 2.8 v/0.2 v fs = 32.768 khz when a program operates on flash memory ? 300 600 a when a program operates on ram ? 8.0 27 supply current in sleep1 mode ? 7.0 25 supply current in sleep0 mode ? 6.0 24 supply current in stop mode v dd = 5.0 v v in = 5.3 v/0.2 v ? 0.5 10
86fh46-29 200 7-08-07 tmp86fh46 note 1: the total error includes all errors except a quantization error, and is defined as a maximum deviation from the ideal conversion line. note 2: conversion time is different in recommended value by power supply voltage. about conversion time, please refer to ?10-bit ad converter?. note 3: please use input voltage to ain input pin in limit of v aref ? v ss . when voltage of range outside is input, conversion value becomes unsettled and gives affect to other channel conversion value. note 4: analog reference voltage range: ? v aref = v aref ? v ss note 5: the a vdd pin should be fixed on the v dd level even though ad converter is not used. ad conversion characteristics (v ss = 0 v, 4.5 v v dd 5.5 v, topr = ? 40 to 85c) parameter symbol condition min typ. max unit analog reference voltage v aref a vdd ? 1.0 ? a vdd v power supply voltage of analog control circuit a vdd v dd analog reference voltage range (note 4) ? v aref 3.5 ?? analog input voltage v ain v ss ? v aref power supply current of analog reference voltage i ref v dd = a vdd = v aref = 5.5 v v ss = a vss = 0.0 v ? 0.6 1.0 ma non linearity error v dd = a vdd = 5.0 v v ss = a vss = 0.0 v v aref = 5.0 v ?? 2 lsb zero point error ?? 2 full scale error ?? 2 total error ?? 2 (v ss = 0 v, 2.7 v v dd < 4.5 v, topr = ? 40 to 85c) parameter symbol condition min typ. max unit analog reference voltage v aref a vdd ? 1.0 ? a vdd v power supply voltage of analog control circuit a vdd v dd analog reference voltage range (note 4) ? v aref 2.5 ?? analog input voltage v ain v ss ? v aref power supply current of analog reference voltage i ref v dd = a vdd = v aref = 4.5v v ss = a vss = 0.0 v ? 0.5 0.8 ma non linearity error v dd = a vdd = 2.7 v v ss = 0.0 v v aref = 2.7 v ?? 2 lsb zero point error ?? 2 full scale error ?? 2 total error ?? 2

86fh46-31 200 7-08-07 tmp86fh46 note 1: to ensure stable oscillation, the resonator position, load capacitance, etc. must be appropriate. because these factors are greatly affected by board patterns, please be sure to evaluate operation on the board on which the device will actually be mounted. note 2: for the resonators to be used with toshiba microcontrollers, we recommend ceramic resonators manufactured by murata manufacturing co., ltd. for details, please visit the website of murata at the following url: http://www.murata.com ? the solderability test conditions for lead-free products (indicated by the suffix g in product name) are shown below. 1. when using the sn-63pb solder bath solder bath temperature = 230 c dipping time = 5 seconds number of times = once r-type flux used 2. when using the sn-3.0ag-0.5cu solder bath solder bath temperature = 245 c dipping time = 5 seconds number of times = once r-type flux used the pass criteron of the above test is as follows: solderability rate until forming 95 % ? when using the device (oscillator) in places exposed to high electric fields such as cathode- ray tubes, we recommend electrically shield ing the package in order to maintain normal operating condition. recommended oscillating conditions handling precaution high-frequency oscillation xtin xtout xin xout c 1 c 2 c 1 c 2 low-frequency oscillation
86fh46-32 200 7-08-07 tmp86fh46 package dimensions p-sdip42-600-1.78 unit: mm


▲Up To Search▲   

 
Price & Availability of TMP86FH46NG

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X